package edu.zut.cs.javaee.manager.checkwork.domain;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

 

import edu.zut.cs.javaee.manager.base.domain.BaseTreeEntity;
 

@Entity
@Table(name="T_CHECKWORK")
@NamedQueries({ @NamedQuery(name = "CheckWork.getRoot", query = "select g from CheckWork g ") })
public class CheckWork extends BaseTreeEntity<CheckWork,Long> {

	/**
	 *  @author 123
	 *  the check work is to  record
	 */
	private static final long serialVersionUID = 1L;
    @Column(name="NAME")
    String name;
    
    @OneToMany(mappedBy = "checkwork", cascade = CascadeType.REMOVE, fetch = FetchType.LAZY)
    Set<StudentOne> stu;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	 
	
	 
	
	 
	  
}
